package cn.lyb.consumerfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("eureka-client")//指定调用哪个服务eureka-client为服务名
public interface FeignService {

    @GetMapping("hello")
    String sayHello(@RequestParam(value = "name") String name);

}